package day01;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class FileInputDemo01 {
    public static void main(String[] args) throws IOException {
        File file = new File("D:\\dev\\tool\\资料\\FileFilterDemo01.java");
        FileInputStream fin = new FileInputStream(file);
        byte[] buff = new byte[1024];
        int len = 1;
        while((len=fin.read(buff))>0) {
            System.out.println(new String(buff,0,len));
        }
        fin.close();
    }
}
